<%@page import="bean.PortfolioVo"%>
<%@page import="bean.portDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>portInput.jsp</title>
<link rel='stylesheet' href='/kiSunnyShop/css/Insertform.css'>
<script src='/kiSunnyShop/js/port.js'></script>
</head>
<body>
<jsp:useBean id="vo" class="bean.PortfolioVo"/>
<jsp:setProperty property="*" name="vo"/>
<%
	
	portDTO dto = new portDTO();
	dto.setVo2(vo);
	PortfolioVo v = dto.selectOne1();
%>


<form id='portmFrm' method='post' action='index1.jsp?inc=./Community/portModify_result.jsp'
		enctype='multipart/form-data'>
<ul>
<h1>상품 수정</h1>
	<li><label>항목</label>
		<select name='cate' size='1' value='<%=v.getCate()%>'>
			<option value=''>항복선택</option>
			<option value='java'>JAVA</option>
			<option value='sql'>SQL</option>
			<option value='jsp'>JSP</option>
		</select></li><br/>
	
	<li><label>제목</label>	
		<input type='text' name='subject' value=<%=v.getSubject()%>></li><br/>
	<li><label>본문</label><p/>
		<input type='textarea' name='content' value=<%=v.getContent()%>><p/></li><br/>
	<li><label>파일 첨부</label>
		<input type='file' name='photo' value="<%=v.getPhoto()%>">
		<input type='button' name='pcancel' value='첨부 취소'><br/></li><br/>
	<li><label>작성자</label>
		<input type='text' name='writer' value=<%=v.getWriter()%>></li><br/>
	<li><label>비밀번호</label>
		<input type="password" name='pwd'></li><br/>

<input type='button' value='수정' id='btnModify' class="btnStyle">
<input type='button' value='목록으로' id='btnList' class="btnStyle">

<input type='hidden' name='rno' value='<%=vo.getRno()%>'>
<input type='hidden' name='nowPage' value='<%=vo.getNowPage()%>'>
<input type='hidden' name='find' value='<%=vo.getFind()%>'>
</ul>
</form>


<script>portModifyInit();</script>
</body>
</html>